<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of March 3, 2008 on March 26, 2009 at 2:18:19 pm</time-stamp>


<class>
<name>EditItemDialog</name>
<environment>SupplyChain</environment>
<super>UI.SimpleDialog</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>sku reorderQuantity quantity sellPrice name model </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category></category>
<attributes>
<package>SupplyChain</package>
</attributes>
</class>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<methods>
<class-id>SupplyChain.EditItemDialog class</class-id> <category>interface specs</category>

<body package="SupplyChain" selector="windowSpec">windowSpec
	"Tools.UIPainter new openOnClass: self andSelector: #windowSpec"

	&lt;resource: #canvas&gt;
	^#(#{UI.FullSpec} 
		#window: 
		#(#{UI.WindowSpec} 
			#label: 'Edit Item' 
			#bounds: #(#{Graphics.Rectangle} 640 512 1086 712 ) ) 
		#component: 
		#(#{UI.SpecCollection} 
			#collection: #(
				#(#{UI.InputFieldSpec} 
					#layout: #(#{Graphics.Rectangle} 110 8 210 31 ) 
					#name: #InputField1 
					#model: #name ) 
				#(#{UI.InputFieldSpec} 
					#layout: #(#{Graphics.Rectangle} 329 8 429 31 ) 
					#name: #InputField2 
					#model: #sku ) 
				#(#{UI.ActionButtonSpec} 
					#layout: #(#{Graphics.Rectangle} 15 160 96 183 ) 
					#name: #ActionButton1 
					#model: #accept 
					#label: 'OK' 
					#defaultable: true ) 
				#(#{UI.ActionButtonSpec} 
					#layout: #(#{Graphics.Rectangle} 349 162 430 185 ) 
					#name: #ActionButton2 
					#model: #cancel 
					#label: 'Cancel' 
					#defaultable: true ) 
				#(#{UI.LabelSpec} 
					#layout: #(#{Core.Point} 16 12 ) 
					#name: #Label1 
					#label: 'Name' ) 
				#(#{UI.LabelSpec} 
					#layout: #(#{Core.Point} 267 12 ) 
					#name: #Label2 
					#label: 'Sku' ) 
				#(#{UI.SpinButtonSpec} 
					#layout: #(#{Graphics.Rectangle} 109 52 209 75 ) 
					#name: #SpinButton1 
					#model: #quantity 
					#type: #number ) 
				#(#{UI.SpinButtonSpec} 
					#layout: #(#{Graphics.Rectangle} 110 89 210 112 ) 
					#name: #SpinButton2 
					#model: #reorderQuantity 
					#type: #number ) 
				#(#{UI.GroupBoxSpec} 
					#layout: #(#{Graphics.Rectangle} 268 53 430 151 ) 
					#name: #GroupBox1 
					#label: 'Sell Price' ) 
				#(#{UI.RadioButtonSpec} 
					#layout: #(#{Core.Point} 277 65 ) 
					#name: #RadioButton1 
					#model: #sellPrice 
					#label: '0' 
					#select: #zero ) 
				#(#{UI.RadioButtonSpec} 
					#layout: #(#{Core.Point} 277 87 ) 
					#name: #RadioButton2 
					#model: #sellPrice 
					#label: '5' 
					#select: #five ) 
				#(#{UI.RadioButtonSpec} 
					#layout: #(#{Core.Point} 277 109 ) 
					#name: #RadioButton3 
					#model: #sellPrice 
					#label: '10' 
					#select: #ten ) 
				#(#{UI.RadioButtonSpec} 
					#layout: #(#{Core.Point} 277 129 ) 
					#name: #RadioButton4 
					#model: #sellPrice 
					#label: '20' 
					#select: #twenty ) 
				#(#{UI.LabelSpec} 
					#layout: #(#{Core.Point} 19 48 ) 
					#name: #Label3 
					#label: 'Quantity' ) 
				#(#{UI.LabelSpec} 
					#layout: #(#{Core.Point} 18 92 ) 
					#name: #Label4 
					#label: 'Reorder Quanrity' ) ) ) )</body>
</methods>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<methods>
<class-id>SupplyChain.EditItemDialog</class-id> <category>aspects</category>

<body package="SupplyChain" selector="name">name
	"This method was generated by UIDefiner.  Any edits made here
	may be lost whenever methods are automatically defined.  The
	initialization provided below may have been preempted by an
	initialize method."

	^name isNil
		ifTrue:
			[name := String new asValue]
		ifFalse:
			[name]</body>

<body package="SupplyChain" selector="quantity">quantity
	"This method was generated by UIDefiner.  Any edits made here
	may be lost whenever methods are automatically defined.  The
	initialization provided below may have been preempted by an
	initialize method."

	^quantity isNil
		ifTrue:
			[quantity := 0 asValue]
		ifFalse:
			[quantity]</body>

<body package="SupplyChain" selector="reorderQuantity">reorderQuantity
	"This method was generated by UIDefiner.  Any edits made here
	may be lost whenever methods are automatically defined.  The
	initialization provided below may have been preempted by an
	initialize method."

	^reorderQuantity isNil
		ifTrue:
			[reorderQuantity := 0 asValue]
		ifFalse:
			[reorderQuantity]</body>

<body package="SupplyChain" selector="sellPrice">sellPrice
	"This method was generated by UIDefiner.  Any edits made here
	may be lost whenever methods are automatically defined.  The
	initialization provided below may have been preempted by an
	initialize method."

	^sellPrice isNil
		ifTrue:
			[sellPrice := nil asValue]
		ifFalse:
			[sellPrice]</body>

<body package="SupplyChain" selector="sku">sku
	"This method was generated by UIDefiner.  Any edits made here
	may be lost whenever methods are automatically defined.  The
	initialization provided below may have been preempted by an
	initialize method."

	^sku isNil
		ifTrue:
			[sku := String new asValue]
		ifFalse:
			[sku]</body>
</methods>

<methods>
<class-id>SupplyChain.EditItemDialog</class-id> <category>accessing</category>

<body package="SupplyChain" selector="model"></body>

<body package="SupplyChain" selector="model:"></body>
</methods>

<methods>
<class-id>SupplyChain.EditItemDialog</class-id> <category>initialize-release</category>

<body package="SupplyChain" selector="initialize"></body>
</methods>

</st-source>
